package clientUtilGUI;

public class KeyValue {
	String value, key;
 
	public KeyValue(String key, String value) {
		this.key = key;
		this.value = value;
	}
 
	public String getKey() { return key; }
	public String getValue() { return value; }
 
	@Override
	public String toString() { return value; }
 
	@Override
	public boolean equals(Object obj) {
		if (obj instanceof KeyValue) {
			KeyValue kv = (KeyValue) obj;
			return (kv.key.equals(this.key));
		}
		return false;
	}
 
	@Override
	public int hashCode() {
		int hash = 7;
		hash = 97 * hash + (this.key != null ? this.key.hashCode() : 0);
		return hash;
	}
}
